import { createApp} from 'vue'
import App from './App.vue'
import router from './router'
import "normalize.css"
import axios from "axios"
import VueAxios from "vue-axios"
import * as ElementPlusIconsVue from "@element-plus/icons-vue"
import tab from "./components/table.vue"
import inp from "./components/inputsreach.vue"
import but from "./components/inpbut.vue"
import { Tab, Tabs } from "vant"
import { createPinia } from 'pinia'
import Dialog from "@/components/Dialog.vue"

const app = createApp(App)
const store = createPinia()
app.use(store)
app.component("tab",tab).component("inp",inp).component("but",but).component("Dialog",Dialog)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use( Tab ).use( Tabs )
app.use(VueAxios,axios)
app.use(router)
app.mount('#app')

const a = 1
// const splist = reactive(JSON.parse(localStorage.getItem("splist")))
